package pe.gob.inei.fx.lib.component.styles.superPanel
{
	import mx.styles.CSSStyleDeclaration;
	
	import pe.gob.inei.fx.images.Icon;

	public class MaximizeStyle extends CSSStyleDeclaration {
		
		private static var _instance:MaximizeStyle;
		
		public function MaximizeStyle(singleton:SingletonForce){
			setStyle("icon", Icon.superPanelIcons().expandUp);
			setStyle("upIcon", Icon.superPanelIcons().expandUp);
			setStyle("overIcon", Icon.superPanelIcons().expandOver);
			setStyle("selectedOverIcon", Icon.superPanelIcons().expandOver);
			setStyle("downIcon", Icon.superPanelIcons().expandDown);
			setStyle("selectedDownIcon", Icon.superPanelIcons().expandDown);
			setStyle("disabledSkin", Icon.superPanelIcons().clear);
			setStyle("selectedUpSkin", Icon.superPanelIcons().clear);
			setStyle("selectedOverSkin", Icon.superPanelIcons().clear);
			setStyle("selectedDownSkin", Icon.superPanelIcons().clear);
			setStyle("upSkin", Icon.superPanelIcons().clear);
			setStyle("overSkin", Icon.superPanelIcons().clear);
			setStyle("downSkin", Icon.superPanelIcons().clear);
		}
		
		public static function instance():MaximizeStyle {
			if(MaximizeStyle._instance == null)
				MaximizeStyle._instance = new MaximizeStyle(new SingletonForce());
			return MaximizeStyle._instance;
		}
	}
}

class SingletonForce {}